{% extends "master.html" %}
{% block subtitle %} - 基础信息 - 编码管理{% endblock %}

{% block extJS %}
<script language="JavaScript" type="text/javascript">
//<![CDATA[
    function toSbumit(){
        $("#dataForm").submit();
        
    }
//]]>
</script>
{% endblock %}




{% block main %}
<div class="container">
    <div class="row">
        <ol class="breadcrumb">
          <li><a href="{{url_for('bpMas.view')}}">基础信息</a></li>
          <li class="active">编码管理</li>
        </ol>
    </div>
    <div class="row">
        <div class="panel panel-primary">
            <div class="panel-heading"><h4 class="panel-title">输入查询条件</h4></div>
            <div class="panel-body">
                <div class="row">{{mymacros.render_search_form(form,3)}}</div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="btn-toolbar pull-right">
                            <div class="btn-group"><button type="button" class="btn btn-primary" onclick="$('.searchForm').submit()">{{BTN_SEARCH}}</button></div>
                        </div>
                    </div>
                </div>
            </div>

            <table class="table table-bordered">
                <thead>
                    <tr>
                        <td>编码名称</td>
                        <td>编码值</td>
                        <td>备注</td>
                    </tr>
                </thead>
                <tbody>
                    {% for r in result %}
                        <tr>
                            <td>{{r.name|f}}</td>
                            <td>{{r.value}}</td>
                            <td>{{r.remark|f}}</td>
                        </tr>
                    {% endfor %}
                <tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}